import type { ArticleList } from '../../types/data'
import type { AriticleAction } from '../../types/store'

const initalState: ArticleList = []
export const article = (state = initalState, action: AriticleAction) => {
  switch (action.type) {
    //  获取文章列表
    case 'article/get':
      return action.payload

    default:
      return state
  }
}
